<template>
<div class="page">
  <div class='nav'>
    <div class="input_view flex_ac" @click="$back() ">
      <van-icon class="ml6" name="arrow-left" size="26" color="#000"/>
      <div class="nav_title">留言板</div>
    </div>
	</div>
	<div class="h45"></div>
  <div class="box2">
    <div class="box1 flex_ac flex_sb">
      <div class="">姓名</div>
		  <input type="text" placeholder="请输入姓名" v-model="mobile"/>
    </div>
    <div class="h1"></div>
    <div class="box1 flex_ac flex_sb">
      <div class="">手机号</div>
      <input type="tel" placeholder="请输入手机号" v-model="mobile"/>
    </div>
	</div>
	<div class="box mt5">
		<div class="title">请提出您的宝贵意见</div>
		<div class="h20"></div>
    <textarea  v-model="value" placeholder="欢迎反馈，我们将为您不断改进（500字以内）" />
		<div class="imgList" id='imgList'>
			<div class="img img_item" v-for="(item,index) in imgs" :key='index'>
				<img class="img"  :src="item" mode="aspectFit" @click="openImg(index)"></img>
				<img class="close" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/imgs/4/2020/09/close.png" mode="" @click="delImg(index)"></img>
			</div>
			<div class="img img_item"  @click="chooseimg">
				<img class="ss" src="http://guizhou-oss.oss-cn-guiyang-gzdata-d01-a.res.gzdata.com.cn/qiji/upload.png" mode=""></img>
				<div class="xx">
					上传图片
				</div>
			</div>
			<div class="img"></div>
		</div>
	</div>
	
	<div class="desc mt10">
		我们会及时处理您的反馈，并第一时间给您回复。您还可以发送邮件至
	</div>
	<div class="desc">
		74279614@qq.com，或拨打客服电话400-962-5108。
	</div>
	
	<div class="btn" @click="submit">
		提交意见
	</div>
	
</div>
</template>

<script>
// import {FeedbackPost} from '@/utils/api'
export default{
	data(){
		return{
			imgWidth:200,
			imgs:[],
			value:'',
			mobile:sessionStorage.mobile
		}
	},
	components:{
	},
	mounted(){

	},
	methods:{
		submit(){
			let data = {
				remark:this.value,
				imgs:this.imgs.join(','),
				mobile:this.mobile,
			}
			// FeedbackPost(data).then(res=>{
			// 	if(res.status==1){
			// 	
			// 		setTimeout(()=>{
			// 			
			// 		},3000)
			// 	}else{
			// 		
			// 	}
			// })
		},
		openImg(index){
		
		},
		chooseimg(){
			
		},
	}
}
</script>

<style scoped lang="scss">
.nav{
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
  height: 40px;
	background-color: rgba($color: #fff, $alpha: 1);
	z-index: 10;
	transition: all 0.5s;
}
.input_view{
	width: 100%;
  height: 100%;
	.nav_title{
		font-weight: 500;
		font-size: 18px;
		color: #000;
	}
}
.page{
	height:100%;
	width:100%;
	background:#f4f4f4;
}
textarea{
  width: 100%;
  height: 80px;
  border: none;
  font-size: 12px;
}
input{
  width: calc(100% - 100px);
  border: none;
  padding: 10px;
}
.btn{
	position: fixed;
	bottom:35px;
	margin: 0 15px;
	width:calc(100% - 30px);
	height: 44px;
	line-height: 44px;
  background: linear-gradient(-34deg, #EB7418 ,#F6A15F );
	border-radius: 22px;
	text-align: center;
	color:#fff;
	font-size: 18px;
}
.desc{
	font-weight: 400;
	font-size: 11px;
	color: #999999;
	padding-left:10px;
	line-height: 20px;
}
.box1{
	height: 55px;
	background: #FFFFFF;
	border-radius: 3px;
	padding:0 10px;
	margin: 0 5px;
	
	font-size: 14px;
	color: #000000;
	input{
		text-align: right;
		font-size: 14px;
		color: #000000;
	}
}
.box{
	background:#fff;
	border-radius: 3px;
	margin: 5px;
	margin-top: 0;
	padding:15px 10px;
	.title{
		font-size: 14px;
		color: #000000;
	}
	.imgList{
		width: 100%;
		margin-top: 10px;
		.img_item{
			display: inline-block;
			background: #F7F7F7;
			color:#BFBFBF;
			text-align: center;
			overflow: hidden;
			border-radius: 6px;
			width: 70px;
			height: 70px;
			
			font-size: 12px;
			color: #999999;
			.ss{
				height:25px;
				width:25px;
				margin-bottom:3px;
				display: block;
				margin:auto;
				margin-top:15px;
			}
			.xx{
				width:100%;
				text-align: center;
			}
		}
		.img{
			margin: 5px;
			position: relative;
			.img{
				width: 100%;
				height:100%;
				// height: 200rpx;
				border-radius: 6px;
				background-color: rgba(0,0,0,.1);
			}
			.close{
				position: absolute;
				top:0px;
				right: 0px;
				width: 20px;
				height: 20px;
			}
		}
	}
}
</style>